public class Day1012T5 {
    public static void main(String[] args) {
        double a[]={1.8,2.6,3,4,5,6,7,8};
        double x=1;
        for (int b=1;b<a.length;b++){
            x*=a[b];
        }for (int b=0;b<a.length;b++){
            a[0]=1.8;
            System.out.println("乘积为"+(x*a[0]));
            break;
        }

    }
}
